const AlipaySdk = require("alipay-sdk").default

const alipaySdk = new AlipaySdk({
    // AppID
    appId: "2021000122679500",
    // 签名算法
    signType: "RSA2",
    // 支付宝网关
    gateway: "https://openapi.alipaydev.com/gateway.do",
    // 支付宝公钥
    alipayPublicKey: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsv//dHvFDkbj/n5/oPslmLKV3NRh79mHNkerEPUafZT0Ui+snPooftQ0z38JYcxIPrVbivTU/XoSWkNT868D1IbXFSzz2UKbaRJ9VBl1HqXlIX9VPz2H6UPsrTM70b4z4sMQPpICV1RobT2OhVRvldzgKOYvHs+Z2h7xVNay+Mb8HBr7eC4pWATKqMGc4PS40hshbnI4N+gr2Yb6t2fg1aWH+eOqnaOt2S21x8F4QZnYWlv/4QqK10hj8OuxYroDHXnVCeMMi75XzjBIxgrkqDsMP+hEQeOoolK41q68/1Z/4zoS0L9EfRGkE8b3Wh1m+N8r5kP5lyuhn4Vz/oxy4wIDAQAB",
    // 应用私钥
    privateKey: "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjEJWLAUd1MZnJGPv5K3LuJLjdzYviX6BO3K2dWN05wUJ4IxGI7aaLBI5uo4UZqkEPbEWbyW0GAebjnmCjevIcsQd2M21FbQA4KxiHyTQxbtN/qaUIVhHPDGetkXf7tzl2tAhlgSjC+Qu2eorjhmStxmCtVPhP/kSyB3JTwpqgWyDsPG6AkcsoJNWivNBK7P5+6PJ894OM0/PtbDxFFdZtaTq/wzct88YSyeo2MLC/isynb8akPNphXh7UJ27z5uyHG67/82sqjW1YHPxowF7h8JJPA+S6skl2/rgZvYhTCFEi6j9GfAg1yuznCHWLcqDb41cb2LMfXKUSonAHxS7FQIDAQAB",
})

module.exports = alipaySdk